
package cassandrawindow;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
/**
 *
 * @author MT140QuyenNB
 */

public class SchedulerProcess implements Runnable{

    //UserManager usermanager;
    Thread runner;

    public SchedulerProcess()
    {
      //  usermanager = new UserManager();
        runner = new Thread(this);
        runner.start();
    }

     public void run()
    {
        while(true)
        {
            try {

                HandleFraudClick hfc = new HandleFraudClick();
                hfc.handleData();
                HandleFraudClickByDay hfcD = new HandleFraudClickByDay();
                hfcD.handleData();
                HandleFraudClickByDayBanner hfcDB = new HandleFraudClickByDayBanner();
                hfcDB.handleData();
                HandleFraudClickByDomain hfcBD = new HandleFraudClickByDomain();
                hfcBD.handleData();                
                /*
                TestThread1 tt1 = new TestThread1();
                TestThread2 tt2 = new TestThread2();
                TestThread3 tt3 = new TestThread3();
                TestThread4 tt4 = new TestThread4();*/
                Thread.sleep(20*60*1000);
                Debug.println("finish");
            } catch (Exception ex){
                Debug.println("exception :"+ex.getMessage());
            }
        }
    }  
}
